/****************************************************
*	OSMF Edge Media Player version 1.2.0
* 
*	Author: Emanuele Manco
* 	E-Mail: hello@flashedge.net
*	Web: http://activeden.net/user/flashedge
*  
*****************************************************/

package net.flashedge.display 
{
	import flash.display.Sprite;
	import flash.text.AntiAliasType;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	
	public class TimeStamp extends Sprite
	{
		
		public var timeSprite:Sprite = new Sprite();
		public var timeText:TextField = new TextField();
		public var timeFormat:TextFormat = new TextFormat();
		
		public var myFont:secondaryFont = new secondaryFont();
		
		public function TimeStamp() 
		{
			addChild(timeSprite);
			
			//timeText = new TextField();
			timeText.autoSize = TextFieldAutoSize.LEFT;
			timeText.background = false;
			timeText.border = false;
			timeText.embedFonts = true;
			timeText.selectable = false;
			timeText.antiAliasType = AntiAliasType.NORMAL;
			
			timeFormat = new TextFormat();
			timeFormat.font = myFont.fontName;
			timeFormat.color = 0xFFFFFF;
			timeFormat.size = 8;
			timeFormat.leftMargin = 2;
			timeFormat.rightMargin = 2;
			
			timeText.defaultTextFormat = timeFormat;
			
			timeText.htmlText = "00:00";
				
			timeSprite.addChild(timeText);
		}
	}

}